The cavity in the vertebrate body enclosed by the ribs between the diaphragm and the neck and containing the lungs and heart